<template>
<div class="list">
    <el-form ref="form" :model="form" inline>
        <el-form-item prop="type">
            <el-select v-model="form.type" placeholder="活动类型">
                <el-option v-for="(item,index) in typeList" :label="item.label" :value="item.value" :key="index"></el-option>
            </el-select>
        </el-form-item>
        <el-form-item prop="status">
            <el-select v-model="form.status" placeholder="活动状态">
                <el-option v-for="(item,index) in statusList" :label="item.label" :value="item.value" :key="index"></el-option>
            </el-select>
        </el-form-item>
        <el-form-item prop="othLabel">
            <el-select v-model="form.othLabel" placeholder="其他条件">
                <el-option v-for="(item,index) in othList" :label="item.label" :value="item.value" :key="index"></el-option>
            </el-select>
        </el-form-item>
        <el-form-item>
            <el-input v-model="form.othVal" placeholder="请输入" :disabled="!form.othLabel"></el-input>
        </el-form-item>
        <el-form-item prop="time">
            <el-select v-model="form.time" placeholder="活动时间">
                <el-option v-for="(item,index) in timeList" :label="item.label" :value="item.value" :key="index"></el-option>
            </el-select>
        </el-form-item>
        <el-form-item prop="timeVal">
            <el-date-picker v-model="form.timeVal" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
            </el-date-picker>
        </el-form-item>
        <el-form-item>
            <el-button type="primary" @click="onSearch">搜索</el-button>
            <el-button type="default" @click="onReset">重置</el-button>
        </el-form-item>
    </el-form>
    <el-table :data="tableData" stripe style="width: 100%">
        <el-table-column prop="id" label="活动id" width="180">
        </el-table-column>
    </el-table>
</div>
</template>

<script>
import {
    form,
    statusList,
    otherList,
    timeList,
    typeList
} from "./listObject";
import {tableData} from "./tableData";
console.log(tableData)
export default {
    data() {
        return {
            list: [],
            isEmpty: false,
            form,
            statusList,
            othList: otherList,
            timeList,
            typeList,
            tableData
        };
    },
    created() {},
    computed: {},
    watch: {},
    methods: {
        onSearch() {},
        onReset() {
            this.$refs.form.resetFileds();
        }
    }
};
</script>

<style lang="scss" scoped>
.list {}
</style>
